/*
 * Copyright (C), 2002-2015, 苏宁易购电子商务有限公司
 * FileName: CmsAdvTypeVo.java
 * Author:   Administrator
 * Date:     2015年4月2日 上午5:45:09
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.deco.domain.vo.sys;

import java.io.Serializable;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * 〈一句话功能简述〉<br>
 * 〈功能详细描述〉
 *
 * @author hzy
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class CmsAdvTypeVo implements Serializable {

    private static final long serialVersionUID = -7012141114004665007L;

    private Integer id;
    private String name;
    private String code;
    private Timestamp createTime;
    private Timestamp updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    // ///
    public String getCreateTimeFmt() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return this.createTime != null ? sdf.format(this.createTime) : null;
    }

    public String getUpdateTimeFmt() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return this.updateTime != null ? sdf.format(this.updateTime) : null;
    }

    @Override
    public String toString() {
        return "CmsAdvTypeVo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
